function Person(name,age,sex='女'){
    // console.log(arguments);
    arguments[1]=27;
    this.name=arguments[0];
    this.age=arguments[1];
    this.sex=sex;
    let a=Array.from(arguments).shift();
    // console.log(Array.from(arguments));
    // console.log(Array.from(arguments).shift());
    console.log(a,'-----')
    console.log(arguments,'====')
}

let wyf=new Person('吴亦凡',18,'男');
let xyx=new Person('萧亚轩',25);
console.log(wyf.__proto__,wyf.constructor,'-----');
let arr=[1,2,3];
console.log(arr.shift());
console.log(arr);